<?php

class HelperController extends ExtController
{
    public function actionGetManagers()
    {
        $data = Employee::model()->findAll("Title like '%Manager'");
        echo $this->ExportToJSONDataSource($data);
    }

    public function actionGetEmployees()
    {
        $data = Employee::model()->findAll();
        echo $this->ExportToJSONDataSource($data);
    }

}
?>
